<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>二.CSS | 你好,欢迎来到MyNote</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../lesson/css/20170724.html" />
    
    
    <link rel="prev" href="../../lesson/html/0721-1.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2"
        data-chapter-title="二.CSS"
        data-filepath="lesson/css/CSS.md"
        data-basepath="../.."
        data-revision="Thu Aug 31 2017 12:00:31 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="lesson/html/HTML.html">
            
                
                    <a href="../../lesson/html/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        一.HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="lesson/html/20170718.html">
            
                
                    <a href="../../lesson/html/20170718.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="lesson/html/0718-3.html">
            
                
                    <a href="../../lesson/html/0718-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="lesson/html/0718-2.html">
            
                
                    <a href="../../lesson/html/0718-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        注释标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="lesson/html/0718-1.html">
            
                
                    <a href="../../lesson/html/0718-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        块级和行内元素
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="lesson/html/20170719.html">
            
                
                    <a href="../../lesson/html/20170719.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="lesson/html/0719-3.html">
            
                
                    <a href="../../lesson/html/0719-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.1.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="lesson/html/0719-4.html">
            
                
                    <a href="../../lesson/html/0719-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.2.</b>
                        
                        文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="lesson/html/0719-1.html">
            
                
                    <a href="../../lesson/html/0719-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.3.</b>
                        
                        audio音频标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="lesson/html/0719-2.html">
            
                
                    <a href="../../lesson/html/0719-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.4.</b>
                        
                        video音频标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="lesson/html/20170720.html">
            
                
                    <a href="../../lesson/html/20170720.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="lesson/html/input.html">
            
                
                    <a href="../../lesson/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.1.</b>
                        
                        课后补充
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="lesson/html/0720-1.html">
            
                
                    <a href="../../lesson/html/0720-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.2.</b>
                        
                        HTML表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="lesson/html/0720-2.html">
            
                
                    <a href="../../lesson/html/0720-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.3.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="lesson/html/20170721.html">
            
                
                    <a href="../../lesson/html/20170721.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="lesson/html/0721-5.html">
            
                
                    <a href="../../lesson/html/0721-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.1.</b>
                        
                        icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="lesson/html/0721-2.html">
            
                
                    <a href="../../lesson/html/0721-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.2.</b>
                        
                        自定义列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="lesson/html/0721-3.html">
            
                
                    <a href="../../lesson/html/0721-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.3.</b>
                        
                        iframe内嵌框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="lesson/html/0721-4.html">
            
                
                    <a href="../../lesson/html/0721-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.4.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="lesson/html/0721-1.html">
            
                
                    <a href="../../lesson/html/0721-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.5.</b>
                        
                        图片的热区hotmap
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2" data-path="lesson/css/CSS.html">
            
                
                    <a href="../../lesson/css/CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        二.CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="lesson/css/20170724.html">
            
                
                    <a href="../../lesson/css/20170724.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        第一节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="lesson/css/0724-1.html">
            
                
                    <a href="../../lesson/css/0724-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="lesson/css/0724-3.html">
            
                
                    <a href="../../lesson/css/0724-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        ID选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="lesson/css/0724-4.html">
            
                
                    <a href="../../lesson/css/0724-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="lesson/css/0724-5.html">
            
                
                    <a href="../../lesson/css/0724-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="lesson/css/扩展.html">
            
                
                    <a href="../../lesson/css/扩展.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="lesson/css/扩展2.html">
            
                
                    <a href="../../lesson/css/扩展2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="lesson/css/0724-2.html">
            
                
                    <a href="../../lesson/css/0724-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        class类选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="lesson/css/20170725.html">
            
                
                    <a href="../../lesson/css/20170725.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        第二节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="lesson/css/0725-1.html">
            
                
                    <a href="../../lesson/css/0725-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="lesson/css/0725-2.html">
            
                
                    <a href="../../lesson/css/0725-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        文本描述
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="lesson/css/0725-3.html">
            
                
                    <a href="../../lesson/css/0725-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        文字阴影
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="lesson/css/0725-4.html">
            
                
                    <a href="../../lesson/css/0725-4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        字体嵌入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="lesson/css/0725-5.html">
            
                
                    <a href="../../lesson/css/0725-5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        CSS颜色
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="lesson/css/20170726.html">
            
                
                    <a href="../../lesson/css/20170726.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        第三节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="lesson/css/0726-1.html">
            
                
                    <a href="../../lesson/css/0726-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        border边框
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="lesson/css/0726-2.html">
            
                
                    <a href="../../lesson/css/0726-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        background背景
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="lesson/css/20170727.html">
            
                
                    <a href="../../lesson/css/20170727.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        第四节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="lesson/css/0727-2.html">
            
                
                    <a href="../../lesson/css/0727-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.1.</b>
                        
                        文字溢出
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="lesson/css/0727-3.html">
            
                
                    <a href="../../lesson/css/0727-3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.2.</b>
                        
                        word-break
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="lesson/css/0727-1.html">
            
                
                    <a href="../../lesson/css/0727-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.3.</b>
                        
                        文字对齐方式
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="lesson/css/20170728.html">
            
                
                    <a href="../../lesson/css/20170728.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        第五节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="lesson/css/0728-1.html">
            
                
                    <a href="../../lesson/css/0728-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.1.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="lesson/css/0728-2.html">
            
                
                    <a href="../../lesson/css/0728-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.2.</b>
                        
                        z-index
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="lesson/css/20170731.html">
            
                
                    <a href="../../lesson/css/20170731.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        第六节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="lesson/css/20170801.html">
            
                
                    <a href="../../lesson/css/20170801.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        第七节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="lesson/css/0801-2.html">
            
                
                    <a href="../../lesson/css/0801-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.1.</b>
                        
                        git安装使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7.2" data-path="lesson/css/0801-1.html">
            
                
                    <a href="../../lesson/css/0801-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.2.</b>
                        
                        SASS安装使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="lesson/css/20170802.html">
            
                
                    <a href="../../lesson/css/20170802.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        第八节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.8.1" data-path="lesson/css/0802-1.html">
            
                
                    <a href="../../lesson/css/0802-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.1.</b>
                        
                        css3 过渡（transition）
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8.2" data-path="lesson/css/0802-2.html">
            
                
                    <a href="../../lesson/css/0802-2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.2.</b>
                        
                        css3 变换（transform）
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="lesson/css/20170803.html">
            
                
                    <a href="../../lesson/css/20170803.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        第九节课
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="lesson/css/20170804.html">
            
                
                    <a href="../../lesson/css/20170804.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        第十节课
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="lesson/css/0804-1.html">
            
                
                    <a href="../../lesson/css/0804-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.1.</b>
                        
                        滤镜
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="lesson/media/media.html">
            
                
                    <a href="../../lesson/media/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        三.项目期间
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="lesson/css/20170807.html">
            
                
                    <a href="../../lesson/css/20170807.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        鲁班项目(第一天)
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="lesson/css/20170808.html">
            
                
                    <a href="../../lesson/css/20170808.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.1.</b>
                        
                        鲁班项目(第二天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="lesson/css/20170809.html">
            
                
                    <a href="../../lesson/css/20170809.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.2.</b>
                        
                        鲁班项目(第三天)
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="lesson/css/20170811.html">
            
                
                    <a href="../../lesson/css/20170811.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.3.</b>
                        
                        鲁班项目(第四天)
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="lesson/viewport/20170814.html">
            
                
                    <a href="../../lesson/viewport/20170814.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        viewport
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.2.1" data-path="lesson/viewport/20170814-1.html">
            
                
                    <a href="../../lesson/viewport/20170814-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.1.</b>
                        
                        viewport特性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="lesson/viewport/20170815.html">
            
                
                    <a href="../../lesson/viewport/20170815.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        移动端项目
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1" data-path="lesson/viewport/20170816.html">
            
                
                    <a href="../../lesson/viewport/20170816.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.</b>
                        
                        倒霉
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1.1" data-path="lesson/viewport/0816-1.html">
            
                
                    <a href="../../lesson/viewport/0816-1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.1.1.</b>
                        
                        css长度单位
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3.2" data-path="lesson/mobile-project/20170817project.html">
            
                
                    <a href="../../lesson/mobile-project/20170817project.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.2.</b>
                        
                        mobile项目入手
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.3" data-path="lesson/mobile-project/20170818.html">
            
                
                    <a href="../../lesson/mobile-project/20170818.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.3.</b>
                        
                        记录
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.4" data-path="lesson/viewport/20170821.html">
            
                
                    <a href="../../lesson/viewport/20170821.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.4.</b>
                        
                        项目中所遇的问题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.5" data-path="lesson/viewport/20170822.html">
            
                
                    <a href="../../lesson/viewport/20170822.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.5.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.6" data-path="lesson/viewport/20170823.html">
            
                
                    <a href="../../lesson/viewport/20170823.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.6.</b>
                        
                        上交测试版
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3.7" data-path="lesson/viewport/20170824.html">
            
                
                    <a href="../../lesson/viewport/20170824.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.7.</b>
                        
                        当日总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="lesson/css/20170830.html">
            
                
                    <a href="../../lesson/css/20170830.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        接触框架
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="lesson/css/20170831.html">
            
                
                    <a href="../../lesson/css/20170831.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        语法与规则 Rules
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >你好,欢迎来到MyNote</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x8BA4;&#x8BC6;css">&#x8BA4;&#x8BC6;CSS</h1>
<h3 id="css--cascading-style-sheets-----&#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;">CSS  (Cascading Style Sheets)     &#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;</h3>
<pre><code> CSS3&#x662F;CSS2&#x7684;&#x5347;&#x7EA7;&#x7248;&#x672C;&#xFF0C;3&#x53EA;&#x662F;&#x7248;&#x672C;&#x53F7;&#xFF0C;&#x5B83;&#x5728;CSS2.1&#x7684;&#x57FA;&#x7840;&#x4E0A;&#x589E;&#x52A0;&#x4E86;&#x5F88;&#x591A;&#x5F3A;&#x5927;&#x7684;&#x65B0;&#x529F;&#x80FD;&#x3002;

 &#x76EE;&#x524D;&#x4E3B;&#x6D41;&#x6D4F;&#x89C8;&#x5668;chrome&#x3001;safari&#x3001;firefox&#x3001;opera&#x3001;&#x751A;&#x81F3;360&#x90FD;&#x5DF2;&#x7ECF;&#x652F;&#x6301;&#x4E86;CSS3&#x5927;&#x90E8;&#x5206;&#x529F;&#x80FD;&#x4E86;&#xFF0C;
 IE10&#x4EE5;&#x540E;&#x4E5F;&#x5F00;&#x59CB;&#x5168;&#x9762;&#x652F;&#x6301;CSS3&#x4E86;&#x3002;

 &#x4E0D;&#x540C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x53EF;&#x80FD;&#x9700;&#x8981;&#x4E0D;&#x540C;&#x7684;&#x524D;&#x7F00;&#x3002;&#x5B83;&#x8868;&#x793A;&#x8BE5;CSS&#x5C5E;&#x6027;&#x6216;&#x89C4;&#x5219;&#x5C1A;&#x672A;&#x6210;&#x4E3A;W3C&#x6807;&#x51C6;&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;&#x662F;&#x6D4F;&#x89C8;
 &#x5668;&#x7684;&#x79C1;&#x6709;&#x5C5E;&#x6027;&#xFF0C;&#x867D;&#x7136;&#x76EE;&#x524D;&#x8F83;&#x65B0;&#x7248;&#x672C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x90FD;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x524D;&#x7F00;&#x7684;&#xFF0C;&#x4F46;&#x4E3A;&#x4E86;&#x66F4;&#x597D;&#x7684;&#x5411;&#x524D;&#x517C;&#x5BB9;&#x524D;&#x7F00;&#x8FD8;&#x662F;&#x5C11;&#x4E0D;&#x4E86;&#x7684;&#x3002;
</code></pre><h3 id="css&#x7684;www">CSS&#x7684;WWW</h3>
<ol>
<li>W&#xFF08;what&#xFF09;&#x3000;  &#x3000;&#x5B83;&#x662F;&#x4EC0;&#x4E48;&#xFF1F; &#x3000;&#x3000; &#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;&#xFF0C;&#x72B9;&#x5982;&#x4E00;&#x5C42;&#x5305;&#x88C5;&#x7EB8;&#xFF0C;&#x5305;&#x88F9;&#x5728;&#x76D2;&#x5B50;&#xFF08;html&#x67B6;&#x6784;&#xFF09;&#x4E0A;&#x3002;</li>
<li>W&#xFF08;why&#xFF09;&#x3000;&#x3000;&#x3000;&#x4E3A;&#x4EC0;&#x4E48;&#x7528;&#xFF1F;  &#x3000;&#x3000;&#x63D0;&#x9AD8;&#x5F00;&#x53D1;&#x6548;&#x7387;&#xFF0C;&#x66F4;&#x5F3A;&#x5927;&#x7684;&#x6837;&#x5F0F;&#x548C;&#x52A8;&#x753B;&#x529F;&#x80FD;&#xFF0C;&#x66F4;&#x5408;&#x7406;&#x7684;&#x4EE3;&#x7801;&#x7ED3;&#x6784;&#x90E8;&#x7F72;&#x3002;</li>
<li>W&#xFF08;where&#xFF09;&#x3000;   &#x5728;&#x54EA;&#x91CC;&#x7528;&#xFF1F;&#x3000;&#x3000;&#x3000;&#x5E38;&#x5E38;&#x7ED3;&#x5408;html&#xFF0C;&#x8FDB;&#x884C;&#x9875;&#x9762;&#x6837;&#x5F0F;&#x4E0A;&#x7684;&#x7F8E;&#x5316;&#xFF0C;&#x548C;&#x6784;&#x9020;&#x9875;&#x9762;&#x5E03;&#x5C40;&#x3002;&#x54EA;&#x91CC;&#x7528;&#x4E86;html&#xFF0C;&#x5C31;&#x80AF;&#x5B9A;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x5B83;&#x3002;</li>
</ol>
<h3 id="css&#x80FD;&#x505A;&#x4EC0;&#x4E48;&#xFF1F;">CSS&#x80FD;&#x505A;&#x4EC0;&#x4E48;&#xFF1F;</h3>
<ul>
<li><p>CSS&#x628A;&#x5F88;&#x591A;&#x4EE5;&#x524D;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x56FE;&#x7247;&#x548C;&#x811A;&#x672C;&#x6765;&#x5B9E;&#x73B0;&#x7684;&#x6548;&#x679C;&#x3001;&#x751A;&#x81F3;&#x52A8;&#x753B;&#x6548;&#x679C;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x77ED;&#x77ED;&#x51E0;&#x884C;&#x4EE3;&#x7801;&#x5C31;&#x80FD;&#x641E;&#x5B9A;&#x3002;&#x6BD4;&#x5982;&#x5706;&#x89D2;&#xFF0C;&#x56FE;&#x7247;&#x8FB9;&#x6846;&#xFF0C;&#x6587;&#x5B57;&#x9634;&#x5F71;&#x548C;&#x76D2;&#x9634;&#x5F71;&#xFF0C;&#x8FC7;&#x6E21;&#x3001;&#x52A8;&#x753B;&#x7B49;&#x3002;</p>
</li>
<li><p>CSS&#x7B80;&#x5316;&#x4E86;&#x524D;&#x7AEF;&#x5F00;&#x53D1;&#x5DE5;&#x4F5C;&#x4EBA;&#x5458;&#x7684;&#x8BBE;&#x8BA1;&#x8FC7;&#x7A0B;&#xFF0C;&#x66F4;&#x7075;&#x6D3B;&#x7684;&#x9875;&#x9762;&#x5E03;&#x5C40;&#xFF0C;&#x66F4;&#x5FEB;&#x7684;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x901F;&#x5EA6;&#x3002;</p>
</li>
<li><p>&#x53EF;&#x4EE5;&#x5C06;&#x7AD9;&#x70B9;&#x4E0A;&#x6240;&#x6709;&#x7684;&#x7F51;&#x9875;&#x98CE;&#x683C;&#x90FD;&#x4F7F;&#x7528;&#x4E00;&#x4E2A;CSS&#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x63A7;&#x5236;&#xFF0C;&#x53EA;&#x8981;&#x4FEE;&#x6539;&#x8FD9;&#x4E2A;CSS&#x6587;&#x4EF6;&#x4E2D;&#x76F8;&#x5E94;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x90A3;&#x4E48;&#x6574;&#x4E2A;&#x7AD9;&#x70B9;&#x7684;&#x6240;&#x6709;&#x9875;&#x9762;&#x90FD;&#x4F1A;&#x968F;&#x4E4B;&#x53D1;&#x751F;&#x53D8;&#x52A8;&#x3002;</p>
</li>
<li><p>CSS&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x591A;&#x79CD;&#x8BBE;&#x5907;,&#x6BD4;&#x5982;&#x624B;&#x673A;,PDA,&#x6253;&#x5370;&#x673A;,&#x7535;&#x89C6;&#x673A;,&#x6E38;&#x620F;&#x673A;&#x7B49;&#x3002;</p>
</li>
<li><p>&#x76EE;&#x7684;&#xFF1A;&#x5C06;&#x8868;&#x73B0;&#x4E0E;&#x7ED3;&#x6784;&#x5206;&#x79BB;&#x3002;</p>
</li>
</ul>
<h3 id="css&#x8BED;&#x6CD5;&#x7ED3;&#x6784;">CSS&#x8BED;&#x6CD5;&#x7ED3;&#x6784;</h3>
<blockquote>
<p>CSS &#x8BED;&#x6CD5;&#x7531;&#x4E09;&#x90E8;&#x5206;&#x6784;&#x6210;&#xFF1A;&#x9009;&#x62E9;&#x7B26;&#x3001;&#x5C5E;&#x6027;&#x548C;&#x503C;
```
    Selector  { Property : Value; }
    &#x9009; &#x62E9; &#x5668;   { &#x5C5E; &#x6027; &#x540D; :&#x5C5E;&#x6027;&#x7684;&#x503C;;}</p>
</blockquote>
<pre><code>
       &#x5C5E;&#x6027;&#xFF08;property&#xFF09;&#x662F;&#x60A8;&#x5E0C;&#x671B;&#x8BBE;&#x7F6E;&#x7684;&#x6837;&#x5F0F;&#x5C5E;&#x6027;&#xFF08;style attribute&#xFF09;&#x3002;&#x6BCF;&#x4E2A;&#x5C5E;&#x6027;&#x6709;&#x4E00;&#x4E2A;&#x503C;&#x3002;&#x5C5E;&#x6027;&#x548C;&#x503C;&#x88AB;&#x5192;&#x53F7;&#x5206;&#x5F00;&#x3002;
```html
&#x4F8B;&#xFF1A;
    &lt;style type=&quot;text/css&quot;&gt;

        body { background-color:#cccccc;}

    &lt;/style&gt;
</code></pre><h3 id="&#x5982;&#x4F55;&#x5F15;&#x5165;css">&#x5982;&#x4F55;&#x5F15;&#x5165;CSS</h3>
<p><strong>&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#xFF1A;</strong></p>
<p><strong>1. &#x884C;&#x5185;&#x5F15;&#x5165;</strong></p>
<blockquote>
<p>&#x884C;&#x5185;&#x5F15;&#x7528;&#x662F;&#x6307;&#x5C06;CSS&#x6837;&#x5F0F;&#x7F16;&#x7801;&#x76F4;&#x63A5;&#x5199;&#x5728;HTML &#x6807;&#x7B7E;&#x4E2D;&#x7684;style&#x5C5E;&#x6027;&#x91CC;&#x3002;&#x76F4;&#x63A5;&#x5728;&#x6807;&#x7B7E;&#x4E2D;&#x52A0;&#x4E0A;<code>style</code>&#x5C5E;&#x6027;&#xFF0C;&#x5E76;&#x5728;&#x91CC;&#x9762;&#x5199;&#x4E0A;&#x5BF9;&#x5E94;&#x7684;CSS&#x4EE3;&#x7801;<br>
&#x4F18;&#x70B9;:&#x6BD4;&#x8F83;&#x76F4;&#x89C2;&#x3002;<br>
&#x7F3A;&#x70B9;:&#x4E0D;&#x80FD;&#x91CD;&#x7528;&#xFF0C;&#x53EA;&#x9488;&#x5BF9;&#x5F53;&#x524D;&#x7684;&#x5143;&#x7D20;&#xFF0C;&#x5E76;&#x4E14;&#x4EE3;&#x7801;&#x6DF7;&#x4E71;&#xFF0C;HTML&#x4E2D;&#x5939;&#x6742;&#x7740;CSS&#x4EE3;&#x7801;&#x3002;<br>    &#x6CE8;&#x610F;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x7684;&#x5F15;&#x5165;CSS&#xFF0C;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x5199;&#x9009;&#x62E9;&#x5668;&#x7684;&#x3002;</p>
</blockquote>
<pre><code>&#x793A;&#x4F8B;&#xFF1A;
&lt;body style=&quot;background-color:#ccccc;&quot;&gt;

&lt;h1 style=&quot;font-size:12px; color:#ff0000;&quot;&gt;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6807;&#x9898;&lt;/h1&gt;
</code></pre><p><strong>2. &#x9875;&#x5185;&#x5F15;&#x5165;&#xFF08;&#x9488;&#x5BF9;&#x9875;&#x9762;&#xFF09;</strong></p>
<blockquote>
<p>&#x9875;&#x5185;&#x5F15;&#x7528;&#x4F5C;&#x4E3A;&#x9875;&#x9762;&#x4E2D;&#x7684;&#x4E00;&#x4E2A;&#x5355;&#x72EC;&#x90E8;&#x5206;&#xFF0C;&#x7531;<code>&lt;style&gt;&lt;/style&gt;</code>&#x6807;&#x7B7E;&#x5B9A;&#x4F4D;&#x5728;<strong><code>&lt;head&gt;&lt;/head&gt;</code></strong>&#x4E4B;&#x4E2D;&#x3002;
&#x4F18;&#x70B9;&#xFF1A;&#x53EF;&#x4EE5;&#x65B9;&#x4FBF;&#x7684;&#x63A7;&#x5236;&#x9875;&#x9762;&#x591A;&#x4E2A;&#x5143;&#x7D20;<br>
&#x7F3A;&#x70B9;&#xFF1A;&#x53EA;&#x80FD;&#x5C40;&#x9650;&#x4E8E;&#x63A7;&#x5236;&#x5F53;&#x524D;&#x9875;&#x9762;</p>
<pre><code class="lang-html">&#x793A;&#x4F8B;&#xFF1A;
        <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
           <span class="hljs-tag">&lt;<span class="hljs-title">style</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;text/css&quot;</span>&gt;</span><span class="css">
              <span class="hljs-tag">body</span> <span class="hljs-rules">{
                   <span class="hljs-rule"><span class="hljs-attribute">background-color</span>:<span class="hljs-value"><span class="hljs-hexcolor">#cccccc</span></span></span>;
              }</span>
           </span><span class="hljs-tag">&lt;/<span class="hljs-title">style</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
</code></pre>
</blockquote>
<p><strong>3. &#x5916;&#x90E8;&#x5F15;&#x5165;(&#x9488;&#x5BF9;&#x591A;&#x9875;&#x9762;)</strong></p>
<blockquote>
<p>&#x5916;&#x90E8;&#x6837;&#x5F0F;&#x8868;&#x662F;CSS&#x5E94;&#x7528;&#x4E2D;&#x6700;&#x597D;&#x7684;&#x4E00;&#x79CD;&#x5F62;&#x5F0F;&#xFF0C;&#x5B83;&#x5C06;CSS&#x6837;&#x5F0F;&#x4EE3;&#x7801;&#x5355;&#x72EC;&#x653E;&#x5728;&#x4E00;&#x4E2A;&#x5916;&#x90E8;&#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x518D;&#x7531;&#x7F51;&#x9875;&#x8FDB;&#x884C;&#x8C03;&#x7528;&#x3002;&#x901A;&#x8FC7;link&#x6807;&#x7B7E;&#xFF0C;&#x5F15;&#x5165;&#x5916;&#x90E8;css&#x6587;&#x4EF6;&#xFF0C;&#x8FBE;&#x5230;&#x4E00;&#x4E2A;css&#x6587;&#x4EF6;&#x63A7;&#x5236;&#x591A;&#x4E2A;html&#x9875;&#x9762;&#x7684;&#x76EE;&#x7684;&#x3002;
&#x4F18;&#x70B9;&#xFF1A;&#x65B9;&#x4FBF;&#x7684;&#x63A7;&#x5236;&#x591A;&#x4E2A;&#x9875;&#x9762;&#xFF0C;&#x7EDF;&#x4E00;&#x5168;&#x7AD9;&#x6837;&#x5F0F;&#xFF0C;&#x53EF;&#x4EE5;&#x88AB;&#x6D4F;&#x89C8;&#x5668;&#x7F13;&#x5B58;&#xFF0C;&#x52A0;&#x5FEB;&#x52A0;&#x8F7D;&#x901F;&#x5EA6;<br>&#x7F3A;&#x70B9;&#xFF1A;&#x56E0;&#x4E3A;&#x6709;&#x7F13;&#x5B58;&#xFF0C;&#x6240;&#x4EE5;&#x6709;&#x53EF;&#x80FD;&#x5B58;&#x5728;&#x66F4;&#x65B0;&#x4E0D;&#x53CA;&#x65F6;</p>
<pre><code class="lang-html">    &#x5982;&#xFF1A;    
    style.css    :
    @charset &quot;utf-8&quot;;
    body {
           background-color:#cccccc;
    }
</code></pre>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">index.html    </span>:<span class="hljs-value">
    &lt;head&gt;
    &lt;link rel=<span class="hljs-string">&quot;stylesheet&quot;</span> type=<span class="hljs-string">&quot;text/css&quot;</span> href=<span class="hljs-string">&quot;style.css&quot;</span> /&gt;
    &lt;/head&gt;
</span></span></code></pre>
<p>&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#x5BF9;&#x6BD4;   &#xFF1A;<br>&#x4F18;&#x5148;&#x7EA7;&#x4F9D;&#x6B21;&#x987A;&#x5E8F;&#x9075;&#x5FAA;&#xFF1A;<strong>&#x5C31;&#x8FD1;&#x539F;&#x5219;</strong><br>&#x884C;&#x5185;&#x5F15;&#x7528;    &gt; &#x9875;&#x5185;&#x5F15;&#x7528;    &gt; &#x9875;&#x5916;&#x5F15;&#x7528;<br>&#x8C01;&#x66F4;&#x63A5;&#x8FD1;&#x76EE;&#x6807;&#x5143;&#x7D20;&#xFF0C;&#x8C01;&#x5C31;&#x62E5;&#x6709;&#x6700;&#x5927;&#x7684;&#x8BDD;&#x4E8B;&#x6743;&#x3002;<br>&#x6240;&#x4EE5;&#x5F53;&#x6211;&#x4EEC;&#x63A7;&#x5236;&#x540C;&#x4E00;&#x79CD;&#x6837;&#x5F0F;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x6700;&#x63A5;&#x8FD1;&#x5143;&#x7D20;&#x7684;&#x6837;&#x5F0F;&#x624D;&#x4F1A;&#x751F;&#x6548;&#x3002;</p>
</blockquote>
<h3 id="css&#x4EE3;&#x7801;&#x6CE8;&#x91CA;">CSS&#x4EE3;&#x7801;&#x6CE8;&#x91CA;</h3>
<pre><code>css &#x4EE3;&#x7801;&#x6CE8;&#x91CA;&#xFF0C;&#x4EE5; /* &#x5F00;&#x59CB; */ &#x7ED3;&#x675F;
</code></pre><p>&#x5982;&#xFF1A;
    /<em> &#x516C;&#x5171;&#x6837;&#x5F0F;</em>/</p>
<pre><code>body { margin:0px; padding:0px;}    

/*&#x5BFC;&#x822A;&#x6837;&#x5F0F;&#x5F00;&#x59CB;*/

#nav {
  &#x2026;&#x2026;
}

/*&#x5BFC;&#x822A;&#x6837;&#x5F0F;&#x7ED3;&#x675F;*/
</code></pre><h3 id="css&#x7684;&#x9009;&#x62E9;&#x7B26;&#x53EF;&#x4EE5;&#x5206;&#x6210;">CSS&#x7684;&#x9009;&#x62E9;&#x7B26;&#x53EF;&#x4EE5;&#x5206;&#x6210;:</h3>
<ul>
<li>&#x901A;&#x914D;&#x9009;&#x62E9;&#x7B26;</li>
<li>&#x5143;&#x7D20;&#x9009;&#x62E9;&#x7B26;</li>
<li>&#x7FA4;&#x7EC4;&#x9009;&#x62E9;&#x7B26;</li>
<li>&#x5173;&#x7CFB;&#x9009;&#x62E9;&#x7B26;</li>
<li>id &#x53CA; class &#x9009;&#x62E9;&#x7B26;</li>
<li>&#x4F2A;&#x7C7B;&#x9009;&#x62E9;&#x7B26;&#xFF08;&#x90E8;&#x5206;&#x6269;&#x5C55;&#x5B66;&#x4E60;&#xFF09;</li>
<li>&#x5C5E;&#x6027;&#x9009;&#x62E9;&#x7B26;&#xFF08;&#x6269;&#x5C55;&#x5B66;&#x4E60;&#xFF09;</li>
<li>&#x4F2A;&#x5BF9;&#x8C61;&#x9009;&#x62E9;&#x7B26;&#xFF08;&#x6269;&#x5C55;&#x5B66;&#x4E60;&#xFF09;</li>
</ul>
<h4 id="1-&#x901A;&#x914D;&#x9009;&#x62E9;&#x7B26;-">1. &#x901A;&#x914D;&#x9009;&#x62E9;&#x7B26; *</h4>
<pre><code>* &#x53F7;&#x8868;&#x793A;&#x6240;&#x6709;&#x7684;&#x5BF9;&#x8C61;
&#x6240;&#x8C13;&#x901A;&#x914D;&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x5C31;&#x662F;&#x6307;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x6A21;&#x7CCA;&#x6307;&#x5B9A;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x5BF9;&#x5BF9;&#x8C61;&#x8FDB;&#x884C;&#x9009;&#x62E9;&#xFF0C;&#x6307;&#x5B9A;&#x6837;&#x5F0F;&#x3002;

&#x4F8B;&#xFF1A;

* {
  color:blue;
  margin:0;
  padding:0;
}    
</code></pre><h4 id="2&#x5143;&#x7D20;&#x9009;&#x62E9;&#x7B26;">2.&#x5143;&#x7D20;&#x9009;&#x62E9;&#x7B26;</h4>
<pre><code>&#x6240;&#x8C13;&#x5143;&#x7D20;&#x9009;&#x62E9;&#x7B26;&#xFF0C;&#x6307;&#x4EE5;&#x7F51;&#x9875;&#x4E2D;&#x5DF2;&#x6709;&#x7684;&#x6807;&#x7B7E;&#x540D;&#x4F5C;&#x4E3A;&#x540D;&#x79F0;&#x7684;&#x9009;&#x62E9;&#x7B26;&#x3002;

&#x4F8B;&#xFF1A;    
    body {}
    h1 {}
    p {}
</code></pre><h4 id="3-&#x7FA4;&#x7EC4;&#x9009;&#x62E9;&#x7B26;">3. &#x7FA4;&#x7EC4;&#x9009;&#x62E9;&#x7B26;</h4>
<pre><code>&#x9664;&#x4E86;&#x53EF;&#x4EE5;&#x5BF9;&#x5355;&#x4E2A;&#x6807;&#x7B7E;&#x8FDB;&#x884C;&#x6837;&#x5F0F;&#x6307;&#x5B9A;&#x5916;&#xFF0C;&#x8FD8;&#x53EF;&#x4EE5;&#x5BF9;&#x4E00;&#x7EC4;&#x6807;&#x7B7E;&#x8FDB;&#x884C;&#x76F8;&#x540C;&#x7684;&#x6837;&#x5F0F;&#x5B9A;&#x4E49;&#x3002;

&#x4F8B;&#xFF1A;

    h1,h2, h3, p {
       font-size:12px;
       font-family:arial;
    }
</code></pre><blockquote>
<p>&#x4F7F;&#x7528;&#x9017;&#x53F7;&#x5BF9;&#x9009;&#x62E9;&#x7B26;&#x8FDB;&#x884C;&#x5206;&#x9694;&#x3002;&#x5BF9;&#x9875;&#x9762;&#x4E2D;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x6837;&#x5F0F;&#x7684;&#x5730;&#x65B9;&#xFF0C;&#x53EA;&#x9700;&#x5199;&#x4E00;&#x6B21;&#x6837;&#x5F0F;&#x3002;</p>
</blockquote>
<p>http&#xFF08;&#x534F;&#x8BAE;&#xFF09;://&#x57DF;&#x540D;&#xFF1A;&#x7AEF;&#x53E3;&#x53F7;
/a/b/c.html&#x7F51;&#x7EDC;&#x7EDD;&#x5BF9;&#x5730;&#x5740;</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../lesson/html/0721-1.html" class="navigation navigation-prev " aria-label="Previous page: 图片的热区hotmap"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../lesson/css/20170724.html" class="navigation navigation-next " aria-label="Next page: 第一节课"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
